<?php
/*
	分享设置
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
if($_RQ['op']=='main'){
	if($_RQ['postdata']){
		$post=get_postdata();
		
		$this->plugin_setting('share',$post);
		exi('设置成功！');
	}
	$setting=$this->plugin_setting('share');
	$return['item']=$setting;
	$return['htmls']=array(
		'type'=>'edit',
		'edit'=>array(
			array('type'=>'string','name'=>'title','title'=>'分享标题','help'=>''),
			array('type'=>'image','name'=>'picurl','title'=>'分享图片','help'=>''),
			array('type'=>'text','name'=>'desc','title'=>'分享描述','help'=>''),
		),
	);
	exi($return);
}